package cn.tedu.egmvc1.controller;

import cn.tedu.egmvc1.dto.AdressDTO;
import cn.tedu.egmvc1.dto.EmpDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AddressController {
    @RequestMapping("/address/add")
    @ResponseBody
    public String add(AdressDTO adressDTO) {
        System.out.println("用户信息————" + adressDTO);
        return "添加成功";
    }
    @RequestMapping("/address/list")
    @ResponseBody
    public String query() {
        return "查询成功";
    }
    @RequestMapping("address/delete")
    @ResponseBody
    public String delete(String id){
        System.out.println("用户信息————"+id);
        return "删除成功";
    }
    @RequestMapping("address/update")
    @ResponseBody
    public String update(AdressDTO adressDTO){
        System.out.println("用户信息————"+adressDTO);
        return "修改成功";
    }
}
